
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '合同信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'htbh_3230a3d7_42k3',
        name: "{{htbh_3230a3d7_42k3}}",
        binding: 'htbh',
        updateOn: 'blur',
        defaultI18nValue: '合同编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    htbh: FormControl;

    @NgFormControl({
        id: 'htlx_ba50cd6e_5t9g',
        name: "{{htlx_ba50cd6e_5t9g}}",
        binding: 'htlx',
        updateOn: 'blur',
        defaultI18nValue: '合同类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    htlx: FormControl;

    @NgFormControl({
        id: 'htsj_c04721ad_qyz1',
        name: "{{htsj_c04721ad_qyz1}}",
        binding: 'htsj',
        updateOn: 'blur',
        defaultI18nValue: '合同时间',
    })
    htsj: FormControl;

    @NgFormControl({
        id: 'bz_1f3d7a8d_i590',
        name: "{{bz_1f3d7a8d_i590}}",
        binding: 'bz',
        updateOn: 'blur',
        defaultI18nValue: '备注',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    bz: FormControl;

}